package pt.iscte.pidesco.app.internal;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(true);

//		layout.addView("org.eclipse.ui.navigator.ProjectExplorer", IPageLayout.LEFT, 0.5f, layout.getEditorArea());

//		String editorArea = layout.getEditorArea();

		// Top left.
//		IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea);//$NON-NLS-1$
//		topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
		
//		topLeft.addView("pa.iscde.core.views.SampleView");
		
//		topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);

		// Add a placeholder for the old navigator to maintain compatibility
//		topLeft.addPlaceholder("org.eclipse.ui.views.ResourceNavigator"); //$NON-NLS-1$

		// Bottom left.
//		IFolderLayout bottomLeft = layout.createFolder(
//				"bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$
//				"topLeft");//$NON-NLS-1$
//		bottomLeft.addView(IPageLayout.ID_OUTLINE);
//
//		// Bottom right.
//		IFolderLayout bottomRight = layout.createFolder(
//				"bottomRight", IPageLayout.BOTTOM, (float) 0.66,//$NON-NLS-1$
//				editorArea);


	}
}
